#include <iostream>
#include <string>
using namespace std;


template<class NameType, class AgeType>
class Person
{
public:
	Person(NameType name, AgeType age)
	{
		_name = name;
		_age = age;
	}

	void showPerson()
	{
		cout << "name: " << this->_name << " age: " << this->_age << endl;
	}
	NameType _name;
	AgeType _age;
};

void test01()
{
	Person<string, int> p1("tom", 18);
	p1.showPerson();
}
int main()
{
	test01();
	return 0;
}